<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewKontoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewKontoLabel_id}"/>
                    <h:outputText value="#{kontoController.selected.id}" title="#{bundle.ViewKontoTitle_id}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_login}"/>
                    <h:outputText value="#{kontoController.selected.login}" title="#{bundle.ViewKontoTitle_login}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_haslo}"/>
                    <h:outputText value="#{kontoController.selected.haslo}" title="#{bundle.ViewKontoTitle_haslo}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_typ}"/>
                    <h:outputText value="#{kontoController.selected.typ}" title="#{bundle.ViewKontoTitle_typ}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_email}"/>
                    <h:outputText value="#{kontoController.selected.email}" title="#{bundle.ViewKontoTitle_email}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_imie}"/>
                    <h:outputText value="#{kontoController.selected.imie}" title="#{bundle.ViewKontoTitle_imie}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_nazwisko}"/>
                    <h:outputText value="#{kontoController.selected.nazwisko}" title="#{bundle.ViewKontoTitle_nazwisko}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_miasto}"/>
                    <h:outputText value="#{kontoController.selected.miasto}" title="#{bundle.ViewKontoTitle_miasto}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_adres}"/>
                    <h:outputText value="#{kontoController.selected.adres}" title="#{bundle.ViewKontoTitle_adres}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_kodPocztowy}"/>
                    <h:outputText value="#{kontoController.selected.kodPocztowy}" title="#{bundle.ViewKontoTitle_kodPocztowy}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_plec}"/>
                    <h:outputText value="#{kontoController.selected.plec}" title="#{bundle.ViewKontoTitle_plec}"/>
                    <h:outputText value="#{bundle.ViewKontoLabel_datazalozenia}"/>
                    <h:outputText value="#{kontoController.selected.datazalozenia}" title="#{bundle.ViewKontoTitle_datazalozenia}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{kontoController.destroyAndView}" value="#{bundle.ViewKontoDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewKontoEditLink}"/>
                <br />
                <h:commandLink action="#{kontoController.prepareCreate}" value="#{bundle.ViewKontoCreateLink}" />
                <br />
                <h:commandLink action="#{kontoController.prepareList}" value="#{bundle.ViewKontoShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewKontoIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
